package org.example.lanhang.controller;

import org.example.lanhang.entity.TbSpecificationOption;
import org.example.lanhang.service.tb_specification_optionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("TbSpecificationOption")
public class tb_specification_optionController {
    @Autowired
    private tb_specification_optionService tbSpecificationOptionService;

    @GetMapping("/list")
    public List<TbSpecificationOption>findall(){
        return tbSpecificationOptionService.findall();
    }
}
